import logging,yagmail,time
def log():
    times=time.strftime('%Y%m%d_%H%M%S',time.localtime())
    logging.basicConfig(level=logging.DEBUG,
                        format='%(filename)s %(levelname)s %(message)s %(asctime)s %(lineno)d',
                        filename=f'hj+{times}+log',
                        filemode='w')